#ifndef STUDENT_H
#define STUDENT_H

#include"QString"
#include "QPixmap"
#include "QLabel"
#include <QDateTime>

class Student
{
public:
    Student();

    Student(int addr, const QString& name, const QDateTime& start, const QDateTime& end)
        : m_addr(addr), m_name(name), m_start(start), m_end(end) {}

    inline void setM_Name(QString name){
        m_name = name;
    }

    inline QString getM_Name() const{
        return m_name;
    }

    inline QPixmap getImage() const{
        return m_image;
    }

    inline void setImage(const QPixmap &image){
        m_image = image;
    }

    inline QLabel *getLabel() const{
        return label;
    }

    inline void setM_IsUsed(const bool isUsed){
        m_isUsed = isUsed;
    }

    inline bool getM_IsUsed() const{
        return m_isUsed;
    }

    inline void setM_Addr(const int addr){
        m_addr = addr;
    }

    inline int getM_Addr() const{
        return m_addr;
    }

    QDateTime getStart() const {
        return m_start;
    }

    QDateTime getEnd() const {
        return m_end;
    }

    void loadLabelImage();

private:
    QString m_name = 0;
    int m_addr = -1;
    QPixmap m_image;
    QLabel *label;
    bool m_isUsed = false;
    QDateTime m_start;
    QDateTime m_end;
};

#endif // STUDENT_H
